package com.yurendao.shop.forum.service;

import com.yurendao.shop.forum.domain.Ncategory;
import com.yurendao.shop.forum.domain.Note;
import com.yurendao.shop.forum.domain.NoteCate;
import com.yurendao.shop.forum.exception.NoteException;
import com.yurendao.shop.pager.domain.Page;

import java.util.List;

/**
 * Created by kong on 16/2/17.
 */
public interface NoteCateService {

    Page<Note> findNoteByCate(Integer ncid,String orderByClause,Integer pageOffset) throws NoteException;

    void insertCate(String ncname,Integer npid) throws NoteException;

    List<Ncategory> getAllCategory() throws NoteException;

    void updateCate(NoteCate noteCate);

    void deleteNoteCate(Integer ncid) throws NoteException;
}
